package com.team.arms.service_management_before.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.service_management_before.domain.ClothingTable;
import com.team.arms.service_management_before.domain.dto.ClothingTableDto;
import com.team.arms.service_management_before.domain.vo.ClothingTableVo;
import com.team.arms.service_management_before.service.ClothingTableService;
import com.team.arms.service_management_before.mapper.ClothingTableMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ClothingTableServiceImpl extends ServiceImpl<ClothingTableMapper, ClothingTable>
    implements ClothingTableService{

    @Autowired
    private ClothingTableMapper clothingTableMapper;

    @Override
    public List<ClothingTableVo> selectList() {
        return clothingTableMapper.selectList();
    }

    @Override
    public ClothingTableVo selectById(String id) {
        return clothingTableMapper.selectListById(id);
    }

    @Override
    public int insertAll(ClothingTable clothingTable) {
        return clothingTableMapper.insertAll(clothingTable);
    }

    @Override
    public int deleteByClothingIds(List<String> id) {
        return clothingTableMapper.deleteBatchIds(id);
    }

    @Override
    public int deleteByClothingId(String id) {
        return clothingTableMapper.deleteById(id);
    }

    @Override
    public List<ClothingTableVo> selectClothingTable(ClothingTableDto clothingTableDto) {
        return clothingTableMapper.selectClothingTable(clothingTableDto);
    }

    @Override
    public List<ClothingTableVo> selectByFiled(String field, String content) {
        return clothingTableMapper.selectByFiled(field, content);
    }
}




